package bishihuizong;

/**
 * Created by JiaJia on 2019/9/21 0021.
 */
public class Wubatongcheng {
    private static Wubatongcheng singleton=new Wubatongcheng();
    public static int count1;
    public static int count2=0;
    public static int count3=1;
    private Wubatongcheng(){
        count1++;
        count2++;
        count3++;
    }
    public static Wubatongcheng getInstance(){
        return singleton;
    }

    public static void main(String[] args) {
        Wubatongcheng singleton=Wubatongcheng.getInstance();
        System.out.println(singleton.count1);
        System.out.println(singleton.count2);
        System.out.println(singleton.count3);
    }
}